# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnome-usage
pkgver=46.0
pkgrel=1
pkgdesc="System resources status"
url="https://wiki.gnome.org/Apps/Usage"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	glib-dev
	gtk4.0-dev
	libgee-dev
	libgtop-dev
	libadwaita-dev
	meson
	tinysparql-dev
	vala>=0.56.10
	"
options="!check" # no tests
subpackages="$pkgname-lang $pkgname-dbg"
source="https://download.gnome.org/sources/gnome-usage/${pkgver%.*}/gnome-usage-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
29bd074dcab10fd676e6e9d9e13fecd7778a5aa87e338e8b3127d2d54fa86c4c8bd73805e21aa674e68568b3168b07219a0b70d934861a552593d581867cd4e6  gnome-usage-46.0.tar.xz
"
